import 'package:flutter/material.dart';

class InfomationPage extends StatelessWidget {
  final arguments;

  InfomationPage({this.arguments});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          centerTitle: true,
          title: Text(
            '${arguments['title']}',
          ),
        ),
        body: Container(
          height: double.infinity,
          width: double.infinity,
          child: SingleChildScrollView(
            padding: EdgeInsets.all(15),
            child: Text(
              arguments.containsKey('message')
                  ? arguments['message']
                  : '''
                  无
    ''',
            ),
          ),
        ));
  }
}
